﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoucheComposantTravail
{
    public class Authentification
    {
        private CoucheComposantCommunication.CUC cuc;
        private FactoryMessage.STGMSG oMsg = new FactoryMessage.STGMSG();

        public Authentification()
        {
            this.cuc = new CoucheComposantCommunication.CUC();
        }

        public FactoryMessage.STGMSG authentifier(FactoryMessage.STGMSG oMsg)
        {
            oMsg.Invoke = "p_authentifier";
            oMsg.Statut = true;

            this.oMsg = cuc.callServices(oMsg);

            return this.oMsg;
        }
    }
}